package com.zb.entity;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zb.vo.StoreBoundVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 仓库出入库日志表
 * </p>
 *
 * @author WEN
 * @since 2024-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjStoreBoundLog对象", description="仓库出入库日志表")
@TableName("zj_store_bound_log")
public class ZjStoreBoundLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "日志类型：1-入库，2-出库")
    private Integer type;

    @ApiModelProperty(value = "入库表ID/出库表ID")
    private Long storeBoundId;

    @ApiModelProperty(value = "入库/出库单号")
    private String storeBoundNo;

    @ApiModelProperty(value = "操作人ID")
    private Long createEmpId;

    @ApiModelProperty(value = "操作人名称")
    private String createEmp;

    @ApiModelProperty(value = "事件标题")
    private String event;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    public ZjStoreBoundLog() {
    }

    public ZjStoreBoundLog(StoreBoundVo storeBoundVo) {
        BeanUtil.copyProperties(storeBoundVo, this);
    }


}
